use the_world_game_core::{Worker, Message, Handler, WorkerContextImpl};

// /// 测试worker的运行
// struct Sheep {
//     num: i32
// }
//
//
// impl Worker for Sheep { type Context = WorkerContextImpl<Slef>; }
//
// struct EatSheepMsg {
//     num: i32
// }
//
// impl Message for EatSheepMsg {
//     type Result = ();
// }
//
// impl Handler<EatSheepMsg> for Sheep {
//     fn handle(&mut self, msg: EatSheepMsg) {
//         self.num -= msg.num;
//         println!("剩余数量 {}", self.num);
//     }
// }

#[the_world_game_core::test]
async fn test_eat_sheep() {
    println!("测试?");
    // let sheep = Sheep {
    //     num: 3
    // };
    // let sender = sheep.run();
    // sender.send(EatSheepMsg { num: 2 });
}
